package com.tsd.core.openweixin.model.wxpay;


import com.tsd.core.openweixin.utils.AdapterCDATA;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class UnifiedOrderResponse {
    @XmlElement(name = "code_url")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    String codeUrl;//NATIVE,二维码扫码支付
    @XmlElement(name = "return_code")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String returnCode;
    @XmlElement(name = "return_msg")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String returnMsg;
    @XmlElement(name = "appid")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String appId;
    @XmlElement(name = "mch_id")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String mchId;
    @XmlElement(name = "nonce_str")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String nonceStr;
    @XmlElement(name = "sign")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String sign;//签名
    @XmlElement(name = "result_code")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String resultCode;
    @XmlElement(name = "prepay_id")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String prepayId;//只在 trade_type 为 NATIVE 时需要填写。此 id 为二维码 中包含的商品 ID，商户自行 维护。
    @XmlElement(name = "trade_type")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String tradeType;//JSAPI、NATIVE、AP

    public String getReturnCode() {
        return returnCode;
    }


    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }


    public String getReturnMsg() {
        return returnMsg;
    }


    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }


    public String getAppId() {
        return appId;
    }


    public void setAppId(String appId) {
        this.appId = appId;
    }


    public String getMchId() {
        return mchId;
    }


    public void setMchId(String mchId) {
        this.mchId = mchId;
    }


    public String getNonceStr() {
        return nonceStr;
    }


    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }


    public String getSign() {
        return sign;
    }


    public void setSign(String sign) {
        this.sign = sign;
    }


    public String getResultCode() {
        return resultCode;
    }


    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }


    public String getPrepayId() {
        return prepayId;
    }


    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }


    public String getTradeType() {
        return tradeType;
    }


    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }


    public String getCodeUrl() {
        return codeUrl;
    }


    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

}
